﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
using TelerikedIn.Models;

namespace TelerikedIn.WebApp.ViewModels.User
{
    public class UserVM
    {
        public string Id { get; set; }

        public string FullName { get; set; }

        public static Expression<Func<ApplicationUser, UserVM>> FromUser
        {
            get
            {
                return user => new UserVM
                {
                    Id = user.Id,
                    FullName = user.FirstName + " " + user.LastName
                };
            }
        }
    }
}